x86: clear CPUID output of leaf 0xd for Dom0 when xsave is disabled
authorJan Beulich <jbeulich@novell.com>
Fri, 20 May 2011 07:54:45 +0000 (08:54 +0100)
committerJan Beulich <jbeulich@novell.com>
Fri, 20 May 2011 07:54:45 +0000 (08:54 +0100)
commit89ed067cfd2c86fcaac3dedd55d3fab785f82e94
treed186684661982cdba1aa8a53258837c6379b29d7
parent70f30bb4374d05b574dc79b5d0d6299d2050e351
x86: clear CPUID output of leaf 0xd for Dom0 when xsave is disabled

Linux starting with 2.6.36 uses the XSAVEOPT instruction and has
certain code paths that look only at the feature bit reported through
CPUID leaf 0xd sub-leaf 1 (i.e. without qualifying the check with one
evaluating leaf 4 output). Consequently the hypervisor ought to mimic
actual hardware in clearing leaf 0xd output when not supporting xsave.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/arch/x86/traps.c